package me.spring.cloud.components.starter.rabbitmq.properties;

import java.io.Serializable;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @description:
 * @author: luffy
 * @create: 2018-11-09 14:17
 **/
@Data
@ConfigurationProperties(prefix = "rabbit.listener")
public class RabbitListenerProperties implements Serializable{

  private static final long serialVersionUID = -6151438008515633701L;

  /**
   * 消费者数量，默认10
   */
  private int prefetchCount = 10;

  /**
   * 每个消费者获取最大投递数量 默认50
   */
  private int concurrentConsumers = 50;
}
